/*
 * Powered By dico
 * Since 2017 - 2018
 */
package com.seeyoui.kensite.bussiness.exam.question.persistence;

import java.util.List;

import com.seeyoui.kensite.bussiness.exam.question.domain.Question;
import com.seeyoui.kensite.bussiness.exam.question.domain.QuestionVO;

/**
 * Question
 * @author dico
 * @version 2.0
 * @since 1.0
 * @date 2018-01-07
 */

public interface QuestionMapper {

	/**
	 * 根据ID查询单条数据
	 * @param id
	 * @return
	 */
	public Question findOne(String id);
	
	/**
	 * 查询数据集合
	 * @param question
	 * @return
	 */
	public List<Question> findList(Question question);
	
	/**
	 * 查询所有数据集合
	 * @param question
	 * @return
	 */
	public List<Question> findAll(Question question);
	
	/**
	 * 查询数据总数
	 * @param question
	 * @return
	 */
	public int findTotal(Question question);

	/**
	 * 查询数据总数排除当前数据
	 * @param question
	 * @return
	 */
	public int findExTotal(Question question);
	
	/**
	 * 数据新增
	 * @param question
	 */
	public void save(Question question);
	
	/**
	 * 数据修改
	 * @param question
	 */
	public void update(Question question);
	
	/**
	 * 数据删除
	 * @param listId
	 */
	public void delete(List<String> listId);
	
	/**
	 * 数据假删除
	 * @param question
	 */
	public void remove(Question question);
	
	/**
	 * 按题库ID和试题类型ID查询QuestionVO列表
	 * @param question
	 * @return List<QuestionVO>
	 */
	public List<QuestionVO> findByLibraryIdAndTypeId(Question question);
}